﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Project7.DeptPageClass;

namespace Project7
{
    public class MainPageClass
    {
        public static void showMainPage() {
            Console.WriteLine("*员工管理系统*");

            Console.WriteLine("  1.部门管理");

            Console.WriteLine("  2.员工信息管理");

            Console.WriteLine("  3.退出");
            Console.WriteLine("**************");
            WriteIn();
        }

        private static void WriteIn()
        {
            Console.Write("请选择模块代码：");
            string mid = Console.ReadLine();
            switch (mid)
            {
                case "1":
                    ShowDeptPage();
                    break;
                case "2":
                    break;
                case "3":
                    break;
                default:
                    Console.WriteLine($"模块代号错误{mid}");
                    WriteIn();
                    break;
            }

        }

    }
}
